import http from '@/utils/http'


type requestSearch = {
    q: string
}

export const searchService = (req: requestSearch) => {
    return http.get('/api/search', { params: req })
}

export const searchSongService = (req: requestSearch) => {
    return http.get('/api/search/songs', { params: req })
}